Sequence analysis in social sciences